package com.paas.form.vo;

import com.paas.form.entity.FormAttributeEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 视图发布审批显示对象
 */
@Data
public class ViewFinalizeVo implements Serializable {

    private String id;

    private String code;

    private String name;

    private String linkTable;

    private String type;

    private String status;

    private String remark;

    @ApiModelProperty(value = "修改人id")
    private String modifyId;

    @ApiModelProperty(value = "所属视图id")
    private String viewId;

    @ApiModelProperty(value = "父Id")
    private String parentId;

    @ApiModelProperty(value = "数据源")
    private String datasource;

    @ApiModelProperty(value = "数据源名称")
    private String datasourceName;

    @ApiModelProperty(value = "ID字段")
    private String idField;

    @ApiModelProperty(value = "父ID字段")
    private String parentField;

    @ApiModelProperty(value = "显示字段")
    private String viewField;


    @ApiModelProperty(value = "状态字段")
    private String statusField;

    @ApiModelProperty(value = "外键映射")
    private String foreignKeyMapping;

    //属性集合
    private List<FormAttributeEntity> attributes;

    //子视图
    private List<ViewFinalizeVo> childrenList = new ArrayList<>();

}
